/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.tms.module.billingitem.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 发票明细实体类
 *
 * @author Blade
 * @since 2022-04-15
 */
@Data
@TableName("tm_billing_item")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "BillingItem对象", description = "发票明细")
public class TMBillingItem extends TenantEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 结算单ID
     */
    @ApiModelProperty(value = "结算单ID")
    private String billingId;
    /**
     * 发票号
     */
    @ApiModelProperty(value = "发票号")
    private String no;
    /**
     * 发票日期
     */
    @ApiModelProperty(value = "发票日期")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime itemDate;
    /**
     * 发票金额
     */
    @ApiModelProperty(value = "发票金额")
    private BigDecimal price;
    /**
     * 发票税额
     */
    @ApiModelProperty(value = "发票税额")
    private BigDecimal tax;
    /**
     * 税价合计
     */
    @ApiModelProperty(value = "税价合计")
    private BigDecimal total;
    /**
     * 币别
     */
    @ApiModelProperty(value = "币别")
    private String currencyType;
    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    private Long id;

    /**
	 * 税率
	 */
	@ApiModelProperty(value = "税率")
	private BigDecimal zsl;
	/**
	 * 发票凭证照片
	 */
	@ApiModelProperty(value = "发票凭证照片")
	private String zfptp;

	/**
	 * 是否含税
	 */
	@ApiModelProperty(value = "是否含税")
	private Boolean doesItIncludeTax;


}
